package com.zh.springcloud.utils;

import java.util.Scanner;

/**
 * @Description: 测试红黑树
 * @ClassName RBTreeText
 * @date: 2021.05.21 14:48
 * @Author: zhanghang
 */
public class RBTreeTest {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		RBTree<String, Object> rbt = new RBTree<>();
		while (true){
			System.out.println("请输入key:");
			String key = scanner.next();
			System.out.println();
			rbt.insert(key,null);
			TreeOperation.show(rbt.getRoot());
		}
	}
}


